package com.tuanzi.loan.business.repository.collaborate;

import com.tuanzi.loan.business.entity.collaborate.NewCollaborateChannelUser;
import com.tuanzi.loan.business.repository.collaborate.custom.CollaborateChannelUserRepositoryCustom;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * User: liangZongXi
 * Create time: 14:29 2018/9/18
 * Description:
 */
public interface CollaborateChannelUserRepository extends JpaRepository<NewCollaborateChannelUser,Integer>,CollaborateChannelUserRepositoryCustom {
    NewCollaborateChannelUser findByChannelIdAndUserName(Integer channelId, String userName);
    List<NewCollaborateChannelUser> findByUserName(String userName);
}
